<template>
	<view class="list">
		<view class="list-item">
			<view class="info">
				<view class="head">
					<uni-badge :text="1" absolute="rightTop" type="error" :offset="[5, 5]">
						<image class="pic" src="@/static/yao.png"></image>
					</uni-badge>
				</view>
				<view class="msg">
					<view class="name">多少分多少分多少分多少分</view>
					<view class="content">学杂费带我上分热威锋网服务</view>
				</view>
			</view>
			<view class="time">12:25</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	onLoad(option) {
		let title = '';
		if (option?.type == 1) {
			title = '交易物流';
		} else if (option?.type == 2) {
			title = '我的信息';
		} else if (option?.type == 3) {
			title = '系统通知';
		}
		uni.setNavigationBarTitle({
			title: title
		});
	},
	methods: {}
};
</script>

<style scoped lang="scss">
.list {
	padding: 40rpx 32rpx;
	&-item {
		display: flex;
		justify-content: space-between;
		padding: 20rpx 0;
	}
	.info {
		display: flex;
		align-items: center;
	}
	.head {
		position: relative;
		z-index: 1;
	}
	.pic {
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
	}
	.msg {
		padding-left: 20rpx;
	}
	.name {
		height: 44rpx;
		font-size: 32rpx;
		line-height: 1;
		color: #000;
	}
	.content {
		line-height: 1.5;
		font-size: 28rpx;
		color: #666;
	}
	.time {
		margin-top: 12rpx;
		font-size: 28rpx;
		color: #999;
	}
}
</style>
